<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/
//重定向到home
Route::get('/', function () {
    return redirect('home');
});
//测试路由
Route::any('hello',function(){
	return "Hello world";
});
Route::auth();
//主页
Route::get('/home', 'HomeController@index');
//重置密码页面
Route::get('/reset',['uses'=>'HomeController@reset']);
//部门列表
Route::get('/department_list',['uses'=>'HomeController@departmentList']);
//新增部门
Route::any('/department_add',['uses'=>'HomeController@departmentAdd']);
//重置密码
Route::post('/resetPassword',['uses'=>'UserController@reset']);
//删除部门
Route::get('/department_delete/{id}',['uses'=>'HomeController@departmentDelete']);
//更新部门
Route::any('/department_update/{id}',['uses'=>'HomeController@departmentUpdate']);
//用户列表
Route::get('/user_list',['uses'=>'HomeController@userList']);
//重置用户密码为123456
Route::get('/user_reset_password/{id}',['uses'=>'HomeController@userResetPassword']);
//删除用户
Route::get('/user_delete/{id}',['uses'=>'HomeController@userDelete']);
//新增用户
Route::any('/user_add',['uses'=>'HomeController@userAdd']);
//办公用品列表
Route::get('/product_list',['uses'=>'HomeController@productList']);
//删除办公用品
Route::get('/product_delete/{id}',['uses'=>'HomeController@productDelete']);
//新增办公用品
Route::any('/product_add',['uses'=>'HomeController@productAdd']);
//修改办公用品数量
Route::any('/num_add',['uses'=>'HomeController@add']);
//录入列表
Route::get('/order_list',['uses'=>'HomeController@orderList0']);
//已审核
Route::get('/order_list_approval',['uses'=>'HomeController@orderList1']);
//审核操作
Route::get('/order_approval/{id}',['uses'=>'HomeController@approvalOrder']);
//拒绝
Route::any('/order_reject',['uses'=>'HomeController@orderReject']);
//拒绝操作
Route::get('/order_grant/{id}',['uses'=>'HomeController@orderGrant']);

Route::get('/input_list',['uses'=>'HomeController@inputList']);
Route::any('/input_action',['uses'=>'HomeController@inputAction']);
Route::get('/inputed_list',['uses'=>'HomeController@inputList1']);


